package com.dj.mingkong.admin.biz.enums;


/**
 * 数据同步类型枚举
 *
 * @author zenglonghui
 * @date: 2023/7/17 17:02
 */
public enum SyncTypeEnum {

    /**
     * 用户同步
     */
    MG_USER(0, "用户同步到MONGODB"),

    /**
     * 音乐同步
     */
    ES_MUSIC(1, "音乐同步到ELASTICSEARCH");

    private final Integer intVal;
    private final String desc;

    SyncTypeEnum(Integer intVal, String desc) {
        this.intVal = intVal;
        this.desc = desc;
    }

    public Integer getIntVal() {
        return intVal;
    }

    public String getDesc() {
        return desc;
    }

    public boolean equalsIntVal(Integer intVal) {
        return this.intVal.equals(intVal);
    }
}
